package com.pension.service;


import com.pension.entity.Service;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * @ClassName: ServiceService
 * @Description: GOOD
 * @author: ZZL
 * @date: 2021/2/1  13:47
 */
public interface ServiceService {

    void InsertService(Service service);

    //根据人名查服务
    Service findServiceByNameWithParam(String realname);

    Integer getServiceCount();

    List<Service> findServiceLstByName(HashMap< String, Integer> map);

    List<Service> getAll();

    List<Service> getServiceBigAll(Service service);

    List<Service> findByType(@Param("s_type")String s_type);

    List<Service> findByName(@Param("realname")String realname);

    List<Service> findByTime(@Param("s_time")String s_time);

    List<Service> findByDay(@Param("s_day")String s_day);

    List<Service> findByClass(@Param("s_class")String s_class);

    List<Service> findByPlace(@Param("s_place")String s_place);

    List<Service> findByAddress(@Param("s_address")String s_address);

    //根据老人id查询老人订购的服务
    List<Service> findByOldManRealName(@RequestParam("realname")String realname);

    void serviceDeleteById(@Param("id") int id);
}
